package springcloudJ.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import springcloudJ.pojo.User;
import springcloudJ.service.SpringCloudService;



@RestController
public class SpringCloudController {

	@Autowired
	private SpringCloudService springCloudService;

	
	@RequestMapping("/queryUser")
	public User queryUser(){
		//List<User> queryUsers = springCloudService.queryUsers();
		User user = new User();
		user.setGender("男");
		user.setName("eureka_provider-user-2");
	/*	if(queryUsers.size()>0){
			 user = queryUsers.get(0);
		}else{
			user.setGender("男");
			user.setName("没有参数");
			
		}*/
		return user;
	}
}
